<ion-header>

    <ion-navbar>
        <ion-title color="primary">登录</ion-title>
    </ion-navbar>

</ion-header>


<ion-content padding>
    <ion-list>
        <ion-item>
            <button ion-button item-start color="light" style="padding-left:0px;">
              +86&nbsp;
              <ion-icon name="ios-arrow-down"></ion-icon>
            </button>
            <ion-label floating>手机号</ion-label>
            <ion-input (keyup)="confirmPhone($event)" type="number" [(ngModel)]="phone"></ion-input>
        </ion-item>
        <ion-item>
            <ion-input type="number" placeholder="验证码" [(ngModel)]="confirm"></ion-input>
            <button ion-button item-end color="light" [disabled]="!canSend" class="sendBtn" (click)="sendMsg()">{{sendText}}</button>
        </ion-item>
        <ion-item>
            <ion-input type="password" [(ngModel)]="password" placeholder="密码(不少于6位数)"></ion-input>
        </ion-item>
        <button class="login" ion-button block (click)="login()">登录</button>
    </ion-list>
</ion-content>